package com.mall.mall.auth.feign;

import com.mall.common.utils.R;
import com.mall.mall.auth.vo.UserLoginVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("mall-member")
public interface MemberFeignService {

    @PostMapping(value = "/member/member/login")
    R login(@RequestBody UserLoginVo vo);


    @PostMapping(value = "/member/member/weixin/login")
    R weixinLogin(@RequestParam("accessTokenInfo") String accessTokenInfo);
}
